package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GoodsOrderMapper;
import com.ruoyi.system.domain.GoodsOrder;
import com.ruoyi.system.service.IGoodsOrderService;

/**
 * googls_orderService业务层处理
 * 
 * @author tedu.zhongshan
 * @date 2022-04-25
 */
@Service
public class GoodsOrderServiceImpl implements IGoodsOrderService 
{
    @Autowired
    private GoodsOrderMapper goodsOrderMapper;

    /**
     * 查询googls_order
     * 
     * @param id googls_order主键
     * @return googls_order
     */
    @Override
    public GoodsOrder selectGoodsOrderById(Long id)
    {
        return goodsOrderMapper.selectGoodsOrderById(id);
    }

    /**
     * 查询googls_order列表
     * 
     * @param goodsOrder googls_order
     * @return googls_order
     */
    @Override
    public List<GoodsOrder> selectGoodsOrderList(GoodsOrder goodsOrder)
    {
        return goodsOrderMapper.selectGoodsOrderList(goodsOrder);
    }

    /**
     * 新增googls_order
     * 
     * @param goodsOrder googls_order
     * @return 结果
     */
    @Override
    public int insertGoodsOrder(GoodsOrder goodsOrder)
    {
        return goodsOrderMapper.insertGoodsOrder(goodsOrder);
    }

    /**
     * 修改googls_order
     * 
     * @param goodsOrder googls_order
     * @return 结果
     */
    @Override
    public int updateGoodsOrder(GoodsOrder goodsOrder)
    {
        return goodsOrderMapper.updateGoodsOrder(goodsOrder);
    }

    /**
     * 批量删除googls_order
     * 
     * @param ids 需要删除的googls_order主键
     * @return 结果
     */
    @Override
    public int deleteGoodsOrderByIds(Long[] ids)
    {
        return goodsOrderMapper.deleteGoodsOrderByIds(ids);
    }

    /**
     * 删除googls_order信息
     * 
     * @param id googls_order主键
     * @return 结果
     */
    @Override
    public int deleteGoodsOrderById(Long id)
    {
        return goodsOrderMapper.deleteGoodsOrderById(id);
    }
}
